package com.ruoyi.project.stat.paeaReportWorkload.domain;

import java.io.Serializable;
import java.util.Date;
public class StatisticsWorkload implements Serializable {

	private static final long serialVersionUID = 6814820166810505842L;
	private String organCode;
	private String organName;
	private String userCode;
	private String userName;
	private String workType;
	private int batchNum;
	private int workload;
	
	private int dayBatchNum;
	private int dayWorkload;
	
	private int monthBatchNum;
	private int monthworkload;
	
	private int yearBatchNum;
	private int yearWorkload;

	//增加月度汇总查询功能
	private Date workDate;
	
	public StatisticsWorkload(String organCode, String organName,
			String userCode, String userName, String workType, int batchNum,
			int workload) {
		this.organCode = organCode;
		this.organName = organName;
		this.userCode = userCode;
		this.userName = userName;
		this.workType = workType;
		this.batchNum = batchNum;
		this.workload = workload;
		this.yearBatchNum = batchNum;
		this.yearWorkload = workload;
	}
	
	public StatisticsWorkload(String organCode, String organName,
			String userCode, String workType, int batchNum, int workload){
		this.organCode = organCode;
		this.organName = organName;
		this.userCode = userCode;
		this.workType = workType;
		this.batchNum = batchNum;
		this.workload = workload;
		this.yearBatchNum = batchNum;
		this.yearWorkload = workload;
	}
	
	public StatisticsWorkload appendMonthWorkload(StatisticsWorkload monthWorkload) {
		this.monthBatchNum = monthWorkload.batchNum;
		this.monthworkload = monthWorkload.workload;
		return this;
	}
	public  String formWorkloadKey() {
		return this.getOrganCode()+"-"+this.getUserCode()+"-" + this.getUserName() +"@"+this.getWorkType();
		
	}
	public  String getOrganTellerString() {
		return this.getOrganCode()+"-"+this.getUserCode() + "-" + this.getUserName();
	}
	public  String getOrganTotalString() {
		return this.getOrganCode()+"-小计：";
	}
	public StatisticsWorkload appendDayWorkload(StatisticsWorkload dayWorkload) {
		this.dayBatchNum = dayWorkload.batchNum;
		this.dayWorkload = dayWorkload.workload;
		return this;
	}
	public String getOrganCode() {
		return organCode;
	}

	public void setOrganCode(String organCode) {
		this.organCode = organCode;
	}

	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getWorkType() {
		return workType;
	}

	public void setWorkType(String workType) {
		this.workType = workType;
	}

	public int getBatchNum() {
		return batchNum;
	}

	public void setBatchNum(int batchNum) {
		this.batchNum = batchNum;
	}

	public int getWorkload() {
		return workload;
	}

	public void setWorkload(int workload) {
		this.workload = workload;
	}

	public int getDayBatchNum() {
		return dayBatchNum;
	}

	public void setDayBatchNum(int dayBatchNum) {
		this.dayBatchNum = dayBatchNum;
	}

	public int getDayWorkload() {
		return dayWorkload;
	}

	public void setDayWorkload(int dayWorkload) {
		this.dayWorkload = dayWorkload;
	}

	public int getMonthBatchNum() {
		return monthBatchNum;
	}

	public void setMonthBatchNum(int monthBatchNum) {
		this.monthBatchNum = monthBatchNum;
	}

	public int getMonthworkload() {
		return monthworkload;
	}

	public void setMonthworkload(int monthworkload) {
		this.monthworkload = monthworkload;
	}

	public int getYearBatchNum() {
		return yearBatchNum;
	}

	public void setYearBatchNum(int yearBatchNum) {
		this.yearBatchNum = yearBatchNum;
	}

	public int getYearWorkload() {
		return yearWorkload;
	}

	public void setYearWorkload(int yearWorkload) {
		this.yearWorkload = yearWorkload;
	}

	public Date getWorkDate() {
		return workDate;
	}

	public void setWorkDate(Date workDate) {
		this.workDate = workDate;
	}
	
	public StatisticsWorkload(String organCode, String organName,String workType, int batchNum,
			int workload,Date workdate) {
		this.organCode = organCode;
		this.organName = organName;
		this.workType = workType;
		this.batchNum = batchNum;
		this.workload = workload;
		this.workDate = workdate;
	}
}
